package com.ea.eadp.nexus.test.common;

/**
 * Created by ChuanYe on 6/11/2015.
 */
public class Authenticator {
    private String authenticator_type;
    private Long authenticator_pid_id;

    public String getAuthenticator_type() {
        return authenticator_type;
    }

    public void setAuthenticator_type(String authenticator_type) {
        this.authenticator_type = authenticator_type;
    }

    public Long getAuthenticator_pid_id() {
        return authenticator_pid_id;
    }

    public void setAuthenticator_pid_id(Long authenticator_pid_id) {
        this.authenticator_pid_id = authenticator_pid_id;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Authenticator that = (Authenticator) o;

        if (authenticator_pid_id != null ? !authenticator_pid_id.equals(that.authenticator_pid_id) : that.authenticator_pid_id != null)
            return false;
        if (authenticator_type != null ? !authenticator_type.equals(that.authenticator_type) : that.authenticator_type != null)
            return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = authenticator_type != null ? authenticator_type.hashCode() : 0;
        result = 31 * result + (authenticator_pid_id != null ? authenticator_pid_id.hashCode() : 0);
        return result;
    }
}
